<?php
$parser = $model->get_parser();
$outline = $parser->__get('outline');
$sections = $parser->__get('sections');

echo '<h2>Sommaire</h2><div>' . $outline . '</div>';

foreach($sections as $section){
	echo '<div class="section">' . $section . '</div>';
}
?>